//
//  MZY_myRenovate.m
//  FullHouse
//
//  Created by dllo on 16/1/22.
//  Copyright © 2016年 yy. All rights reserved.
//

#import "MZY_myRenovate.h"

#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation MZY_myRenovate

- (void)dealloc
{
    [self.titleLabel release];
    [self.renovateImageView release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView{
    self.titleLabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.titleLabel];
    [self.titleLabel release];
    
    self.renovateImageView = [[UIImageView alloc]init];
    [self.contentView addSubview:self.renovateImageView];
    [self.renovateImageView release];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(10, 10, 100, 20);
    self.renovateImageView.frame = CGRectMake(10, 40, WIDTH - 20, HEIGHT - 40);
}

@end
